* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.list {
    width: 990px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.item {
    width: 240px;
    margin-left: 10px;
    padding: 20px 30px;
    transition: all 0.5s;
    margin-bottom: 20px;

}

.item:nth-child(4n) {
    margin-left: 0;
}

.item:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transform: translate3d(0, -4px, 0);
    cursor: pointer;
}

.item img {
    width: 100%;
}

.item .name {
    font-size: 18px;
    margin-bottom: 10px;
    color: #666;

}

.item .price {
    font-size: 22px;
    color: firebrick;
}

.item .price::before {
    content: "¥";
    font-size: 14px;
}

.filter {
    display: flex;
    width: 990px;
    margin: 0 auto;
    padding: 50px 30px;
}

.filter-1 {
    width: 120px;
    padding: 5px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    margin-right: 20px;
}

.filter-1:active,
.filter-1:focus {
    background: #05943c;
    color: #fff;
}

.flex {
    display: flex;
    flex-flow: row wrap;
}

.active {
    background-color: white;
}
